package mars;

public class OutOfBoundsException extends Exception {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Position currPos;
	public OutOfBoundsException(Position currPos) {
		this.currPos = currPos;
	}
	public String getMessage() {
		return "Command string is incorrect, rover is out of bounds "+currPos;
	}
}
